package com.qfedu.mtl.service;

import com.qfedu.mtl.dto.BasicDto;
import com.qfedu.mtl.entity.BasicInfo;
import com.qfedu.mtl.entity.InfoDetail;
import com.qfedu.mtl.query.BasicQuery;
import com.qfedu.mtl.query.SelectQuery;
import com.qfedu.mtl.util.page.Pager;

import java.util.List;

public interface BasiService {

    int add(BasicDto dto);

    int delete(int parseInt);

    BasicInfo select(Integer valueOf);

    int update(BasicDto dto);

    List<InfoDetail>  findDetail(Integer valueOf);

    List<BasicInfo> selectAll();

    int addDetail(InfoDetail infoDetail);

    int deleteDetail(Integer valueOf);
    //批量删除
    int deleteBatch(List<Integer> idsss);
    //选项的批量删除
    int deleteBatch2(List<Integer> idsss);

    int updateDetail(InfoDetail infoDetail);

    int getTotal(int g_id, String ids);

    Pager<BasicInfo> findPage(Integer page, Integer size, BasicQuery query);

    //所有选项
    Pager<InfoDetail> findPage2(Integer valueOf, Integer valueOf1, SelectQuery query);

    //某个类目id下的选项
    Pager<InfoDetail> findPage3(int id, Integer valueOf, Integer valueOf1, SelectQuery query);
}
